// license-header java merge-point
/**
 * This is only generated once! It will never be overwritten.
 * You can (and have to!) safely modify it by hand.
 */
package fr.upstlse.glre.business.domain.vitrine;


/**
 * @see fr.upstlse.glre.business.domain.vitrine.PageVitrine
 */
public class PageVitrineDaoImpl
    extends fr.upstlse.glre.business.domain.vitrine.PageVitrineDaoBase
{
    /**
     * @see fr.upstlse.glre.business.domain.vitrine.PageVitrineDao#toPageVitrineVO(fr.upstlse.glre.business.domain.vitrine.PageVitrine, fr.upstlse.glre.business.vo.vitrine.PageVitrineVO)
     */
    public void toPageVitrineVO(
        fr.upstlse.glre.business.domain.vitrine.PageVitrine source,
        fr.upstlse.glre.business.vo.vitrine.PageVitrineVO target)
    {
        // @todo verify behavior of toPageVitrineVO
        super.toPageVitrineVO(source, target);
    }


    /**
     * @see fr.upstlse.glre.business.domain.vitrine.PageVitrineDao#toPageVitrineVO(fr.upstlse.glre.business.domain.vitrine.PageVitrine)
     */
    public fr.upstlse.glre.business.vo.vitrine.PageVitrineVO toPageVitrineVO(final fr.upstlse.glre.business.domain.vitrine.PageVitrine entity)
    {
        // @todo verify behavior of toPageVitrineVO
        return super.toPageVitrineVO(entity);
    }


    /**
     * Retrieves the entity object that is associated with the specified value object
     * from the object store. If no such entity object exists in the object store,
     * a new, blank entity is created
     */
    private fr.upstlse.glre.business.domain.vitrine.PageVitrine loadPageVitrineFromPageVitrineVO(fr.upstlse.glre.business.vo.vitrine.PageVitrineVO pageVitrineVO)
    {
        fr.upstlse.glre.business.domain.vitrine.PageVitrine pageVitrine = this.load(pageVitrineVO.getId());
        if (pageVitrine == null)
        {
            pageVitrine = fr.upstlse.glre.business.domain.vitrine.PageVitrine.Factory.newInstance();
        }
        return pageVitrine;
    }

    
    /**
     * @see fr.upstlse.glre.business.domain.vitrine.PageVitrineDao#pageVitrineVOToEntity(fr.upstlse.glre.business.vo.vitrine.PageVitrineVO)
     */
    public fr.upstlse.glre.business.domain.vitrine.PageVitrine pageVitrineVOToEntity(fr.upstlse.glre.business.vo.vitrine.PageVitrineVO pageVitrineVO)
    {
        // @todo verify behavior of pageVitrineVOToEntity
        fr.upstlse.glre.business.domain.vitrine.PageVitrine entity = this.loadPageVitrineFromPageVitrineVO(pageVitrineVO);
        this.pageVitrineVOToEntity(pageVitrineVO, entity, true);
        return entity;
    }


    /**
     * @see fr.upstlse.glre.business.domain.vitrine.PageVitrineDao#pageVitrineVOToEntity(fr.upstlse.glre.business.vo.vitrine.PageVitrineVO, fr.upstlse.glre.business.domain.vitrine.PageVitrine)
     */
    public void pageVitrineVOToEntity(
        fr.upstlse.glre.business.vo.vitrine.PageVitrineVO source,
        fr.upstlse.glre.business.domain.vitrine.PageVitrine target,
        boolean copyIfNull)
    {
        // @todo verify behavior of pageVitrineVOToEntity
        super.pageVitrineVOToEntity(source, target, copyIfNull);
    }

}